package com.lg.winclient;

import java.io.IOException;
import java.net.Socket;

public class MainFrame {
    //传给Frame时构造函数来一个 socket
    public MainFrame(String arg1){
        Socket socket = null;
        try {
             socket=new Socket("127.0.0.1",8888);
        } catch (IOException e) {
            e.printStackTrace();
        }

        //获取到工具1 socket
        //线程工具.除非想连接不通的socket

        SendThread sendThread = new SendThread();
        sendThread.setMsg(arg1);
        sendThread.setSocket(socket);
        sendThread.start();
    }
}
